<?php
$this->lang->load('template');
$this->load->helper('text');
//$this->lang->load('validation');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0042)http://www.fav365.com/ball/?m=admin&c=good -->
<HTML>
<HEAD>
<TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META http-equiv=Pragma content=no-cache>
<META http-equiv=Cache-Control content=no-cache>
<META http-equiv=Expires content=0>
<LINK href="/css/admin.css" 
type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.3395" name=GENERATOR>
<script src="/js/global.js" type="text/javascript"></script>
</HEAD>
<BODY>
<DIV class=admin_box>
  <DIV class=admin_boxtop></DIV>
  <DIV class=admin_boxmain>
  	<FORM id=postform name=postform action="<?=site_url('database/backup')?>" method=post >
      <TABLE cellSpacing=1 cellPadding=0 width="100%" align=center border=0>
      <input type="hidden" class="button" name="redirect" value="<?=site_url('guestbooks/admin')?>" />
        <TBODY>
          <TR>
            <TD><H1 class=title>
            <?=$this->lang->line('tpl_database').$this->lang->line('tpl_lists')?>
            </H1></TD>
          </TR>
        </TBODY>
      </TABLE>
      <TABLE class=table cellSpacing=1 cellPadding=5 width="100%" align=center border=0 id="checkList">
        <TBODY>
          <TR class=tr2 align=middle>
            <TD class=tdbg width="10%"><?=$this->lang->line('tpl_selected')?></TD>
            <TD class=tdbg width="15%"><DIV align=center><strong><?=$this->lang->line('tpl_name')?></strong></DIV></TD>
            <TD class=tdbg width="30%"><DIV class=STYLE3 align=center><DIV align=center><?=$this->lang->line('tpl_type')?></DIV></DIV></TD>
            <TD class=tdbg width="10%"><DIV class=STYLE3 align=center><DIV align=center><?=$this->lang->line('tpl_dbcollat')?></DIV> </DIV></TD>
            <TD class=tdbg width="15%"><DIV class=STYLE3 align=center><DIV align=center><?=$this->lang->line('tpl_dbcounts')?></DIV> </DIV></TD>
            <TD class=tdbg width="10%"><DIV class=STYLE3 align=center><DIV align=center><?=$this->lang->line('tpl_dbsize')?></DIV></DIV></TD>
          </TR>
          <?php 
			foreach($dataList as $key=>$value){
    	  ?>
          <TR>
            <TD class=tr2 width="10%" align="center">
			<INPUT type=checkbox value=<?=$value['Name']?> name=tables[] onClick="sets(this)">
			</TD>
            <TD class=tr2 width="15%"><DIV align=center><STRONG>
                <?=$value['Name']?>
                </STRONG></DIV></TD>
			<TD class=tr2 width="30%" nowrap="nowrap"><DIV class=STYLE1 align=center><DIV style="text-align:left;text-indent:15px"><a href="#" title="<?=$value['Engine']?>" style="text-decoration:none;color:gray;cursor:default"><?=$value['Engine']?></a> </DIV></DIV></TD>
            <TD class=tr2 width="10%"><DIV class=STYLE3 align=center>
                <DIV align=center>
                  <?=$value['Collation']?>
                </DIV>
              </DIV></TD>
            <TD class=tr2 width="15%" nowrap="nowrap"><DIV class=STYLE3 align=center>
                <DIV align=center>
                  <?=$value['Rows']?>
                </DIV>
              </DIV></TD>
            <TD class=tr2 width="10%"><DIV class=STYLE3 align=center>
                <DIV align=center>
                <?php 
                	echo $value['Data_length'].'B';
                ?>
                </DIV>
              </DIV></TD>
          </TR>
          <?php
			}
		  ?>
          <TR class=tr_fff >
            <TD align=left colSpan=10 >
			<INPUT class=btn onClick="CheckAll('checkList',true)" type=button value="<?=$this->lang->line('tpl_selectall')?>">
              <INPUT class=btn onClick="CheckAll('checkList',false)" type=button value="<?=$this->lang->line('tpl_cancel')?>">
              <INPUT class=btn  type="submit" value="<?=$this->lang->line('tpl_backup')?>">
            </TD>
          </TR>
        </TBODY>
      </TABLE>
     </FORM>
  </DIV>
  <DIV class=admin_boxbottom> </DIV>
</DIV>
</BODY>
</HTML>
